<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Business
 *
 * @property int $id
 * @property string|null $title
 * @property string|null $logo
 * @property int|null $bussine_type_id
 * @property string|null $price
 * @property string|null $xiaofei
 * @property string|null $chanpin
 * @property string|null $city
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|Business newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Business newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|Business query()
 * @method static \Illuminate\Database\Eloquent\Builder|Business whereBussineTypeId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Business whereChanpin($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Business whereCity($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Business whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Business whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Business whereLogo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Business wherePrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Business whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Business whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|Business whereXiaofei($value)
 * @mixin \Eloquent
 * @property-read \App\Models\BusinessType|null $type
 */
class Business extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'business';
    public function  type(){
        return $this->belongsTo(BusinessType::class,'bussine_type_id','id');
    }

}
